<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!-- 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 -->
 <!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>" >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/easyui-1.3.1/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/easyui-1.3.1/themes/icon.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>plugins/easyui-portal-1.2.6/portal.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>styles/w_Css.css"></link>

<script type="text/javascript" src="<%=basePath%>plugins/easyui-1.3.1/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>plugins/easyui-1.3.1/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<%=basePath%>plugins/easyui-1.3.1/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="<%=basePath%>plugins/easyui-portal-1.2.6/jquery.portal.js"></script>
<script type="text/javascript" src="<%=basePath%>plugins/highcharts-2.3.2/highcharts.js"></script>
<script type="text/javascript" src="<%=basePath%>plugins/xheditor-1.1.14/xheditor-1.1.14-zh-cn.min.js"></script>
<script type="text/javascript" src="<%=basePath%>plugins/ajaxfileupload-2.1/ajaxfileupload.js"></script>

<script type="text/javascript" src="<%=basePath%>scripts/system/base/swfobject.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/api.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/api.crud.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/api.workflow.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/api.permisson.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/index.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/json.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/system/base/extend.js"></script>
<script type="text/javascript" src="<%=basePath%>scripts/test.js"></script>
<%@include file="WEB-INF/workflow/workflow.jsp" %>
<title>Insert title here</title>
</head>

<body class="easyui-layout">

	<!-- 页面顶栏 -->
	<div region="north" border="true" split="true" title="" style="height:100px" align="center">
		<p >AiJian Business Development Platform. Ver 1.0.</p>
	</div>


	<!-- 页面菜单栏 -->
	<div region="west" split="true" title="栏目菜单" style="width:280px; overflow:hidden">
		<div class="easyui-accordion" fit="true" border="false">
			<s:iterator value="#session['menus']" var='menus'> 
				<div title='<s:property value="#menus.name"/>' style="overflow:auto;">
					<div id='dFunctionTree<s:property value="#menus.id"/>' style="overflow:auto;"></div>
				</div>
			</s:iterator>
		</div>
	</div>
	

	<!-- 页面主面板区 -->
	<div region="center" title="">
		<div id="centerTabs" class="easyui-tabs" fit="true" border="false">
			
		</div>
	</div>
	
	<!-- 页面底栏 -->
	<div region="south"  border="false" split="false" style="height:35px;">
		
	</div>

	
	<div id="tabsMenu" class="easyui-menu" style="width:150px;">
		<div id="tmCloseTab">关闭标签</div>
		<div id="tmCloseOtherTab">关闭其他标签</div>
		<div id="tmCloseAllTab">全部关闭标签</div>
	</div>
	
	
	<s:if test="#session['user']== null">
	<div id="dDengLu">
		<div class="easyui-layout" fit="true">
			<div region="center" border="false" class="main_login" style="background:url(<%=basePath%>/images/login_main.png) no-repeat;">
				<form id="loginForm" method="post" action="user!login">	
				<table width="100%" height="285px" border="0" style="background:url(<%=basePath%>/images/login_main.png) no-repeat;">
					<tr>
						<td height="90px" colspan="4"></td>
					</tr>
					<tr>
						<td width="130px"></td>
						<td style="width: 60px; height:35px; color: white;"><b>用户名：</b></td>
						<td><input id="userName" name="userName" type="text" style="width: 230px; height: 22px; border-bottom:#a4bed4 1px solid; border-right:#a4bed4 1px solid;	border-left:#a4bed4 1px solid;	border-top:#a4bed4 1px solid;" value="admin"/></td>
						<td width="130px"></td>
					</tr>
					<tr>
						<td width="130px"></td>
						<td style="width: 60px; height:35px;  color: white;"><b>密　码：</b></td>
						<td><input id="userPwd" name="userPwd" type="password" style="width: 230px; height: 22px; border-bottom:#a4bed4 1px solid; border-right:#a4bed4 1px solid;	border-left:#a4bed4 1px solid; border-top:#a4bed4 1px solid;" value="123"/></td>
						<td width="130px"></td>
					</tr>
					<tr>
						<td colspan="4" align="center"><input name="btn_login" type="button" style="border:0px; width:142px; height:32px; background:url(<%=basePath%>/images/btn_login.jpg) no-repeat; " onclick="userLogin()" />
						　　<input name="btn_reset" type="reset" value="" style="border:0px; width:142px; height:32px; background:url(<%=basePath%>/images/btn_reset.jpg) no-repeat;" /></td>
					</tr>
					<tr>
						<td colspan="4"><p align="center"><font id="errorMessage" color="red"></font></p></td>
					</tr>
				</table>
				</form>	
			</div>
		</div>			
	</div>
	</s:if>
	
	<!-- 业务窗口 -->
	<div id="BUSINESS_WINDOW_DIV">
	</div>
</body>
</html>